Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Is it possible to use the ?{Number of Dice} options more than once in a single macro

I have two macros: /roll ?{Number of Dice}d6>5  and  /roll ?{Number of Dice}d4>4, that I use independently, but in some instances i need to do both in the same roll.  I can do this manually with a chat command: /roll 2 d6>5 + 1 d4>4.  When I try and combine the two macros I only get one ?{Number of Dice} selection that is then applied to both sets of dice.  Is there a way to nest this so that I can specify the amount of dice for each? Any assistance would be appreciated.
1695247289

Edited 1695301778
/roll ?{1st Roll: Number of Dice}d6>5 + ?{2nd Roll: Number of Dice}d4>4 /roll ?{Number of d6's}d6>5 + ?{Number of d4's}d4>4 A query name can only be used once per macro (or rather, if it is reused, then Roll20 will reuse the same output each time, regardless if the selections are intended to be different). If you really want both of them to have the "same" input but ask two separate queries, you can fake it with a space character (using an html entity replacement): /roll ?{Number of Dice}d6>5 + ?{ Number of Dice}d4>4
1695250734

Edited 1695848335
GiGs
Pro
Sheet Author
API Scripter
As Jarren shows above, you can just use a different name for each Query. If you use the same name, then people will be prompted only once and that same value will be used in both places.
thank you @Jarren.  This naming convention is what I was missing and exactly what I needed.